import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity({
    name: 'sso_token'
})
export class SsoToken {
    @PrimaryGeneratedColumn()
    id: number;
    @Column({ default: '' })
    access_token: string;
    @Column({ default: '' })
    token_type: string;
    @Column({ default: '' })
    refresh_token: string;
    @Column({ default: 0, type: 'bigint' })
    expires_in: number;
    @Column({ default: '' })
    scope: string;
    @Column({ default: '' })
    openid: string;
    @Column({ default: '' })
    domain: string;
}